﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Model
{
    //物品采购申请表
    public class Purchase_goods
    {
       [Key] 
        public int Purchase_ID { get; set; }//采购ID

        public string Purchase_goods_Name { get; set; }//采购物品名称    
                                                      
        public double Unit_Price { get; set; }//单价

        public int GoodCount { get; set; }//商品数量


        public double Subtotal { get; set; }//小计


        public string Agency_ID { get; set; }  //任务单单号
        [ForeignKey("Agency_ID")]
        public virtual commission Commission { get; set; }

    }
}
